/*
 * Flowable REST API
 * # flowable / flowəb(ə)l /    - a compact and highly efficient workflow and Business Process Management (BPM) platform for developers, system admins and business users.  - a lightning fast, tried and tested BPMN 2 process engine written in Java. It is Apache 2.0 licensed open source, with a committed community.  - can run embedded in a Java application, or as a service on a server, a cluster, and in the cloud. It integrates perfectly with Spring. With a rich Java and REST API, it is the ideal engine for orchestrating human or system activities.
 *
 * OpenAPI spec version: v1
 *
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.ibm.risk.irmp.workflow.client.flowable.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;

/**
 * InjectActivityRequest
 */

public class InjectActivityRequest {
  @JsonProperty("injectionType")
  private String injectionType = null;

  @JsonProperty("id")
  private String id = null;

  @JsonProperty("name")
  private String name = null;

  @JsonProperty("assignee")
  private String assignee = null;

  @JsonProperty("taskId")
  private String taskId = null;

  @JsonProperty("processDefinitionId")
  private String processDefinitionId = null;

  @JsonProperty("joinParallelActivitiesOnComplete")
  private Boolean joinParallelActivitiesOnComplete = null;

  public InjectActivityRequest injectionType(String injectionType) {
    this.injectionType = injectionType;
    return this;
  }

   /**
   * Get injectionType
   * @return injectionType
  **/
  @ApiModelProperty(value = "")
  public String getInjectionType() {
    return injectionType;
  }

  public void setInjectionType(String injectionType) {
    this.injectionType = injectionType;
  }

  public InjectActivityRequest id(String id) {
    this.id = id;
    return this;
  }

   /**
   * Get id
   * @return id
  **/
  @ApiModelProperty(value = "")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public InjectActivityRequest name(String name) {
    this.name = name;
    return this;
  }

   /**
   * Get name
   * @return name
  **/
  @ApiModelProperty(value = "")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public InjectActivityRequest assignee(String assignee) {
    this.assignee = assignee;
    return this;
  }

   /**
   * Get assignee
   * @return assignee
  **/
  @ApiModelProperty(value = "")
  public String getAssignee() {
    return assignee;
  }

  public void setAssignee(String assignee) {
    this.assignee = assignee;
  }

  public InjectActivityRequest taskId(String taskId) {
    this.taskId = taskId;
    return this;
  }

   /**
   * Get taskId
   * @return taskId
  **/
  @ApiModelProperty(value = "")
  public String getTaskId() {
    return taskId;
  }

  public void setTaskId(String taskId) {
    this.taskId = taskId;
  }

  public InjectActivityRequest processDefinitionId(String processDefinitionId) {
    this.processDefinitionId = processDefinitionId;
    return this;
  }

   /**
   * Get processDefinitionId
   * @return processDefinitionId
  **/
  @ApiModelProperty(value = "")
  public String getProcessDefinitionId() {
    return processDefinitionId;
  }

  public void setProcessDefinitionId(String processDefinitionId) {
    this.processDefinitionId = processDefinitionId;
  }

  public InjectActivityRequest joinParallelActivitiesOnComplete(Boolean joinParallelActivitiesOnComplete) {
    this.joinParallelActivitiesOnComplete = joinParallelActivitiesOnComplete;
    return this;
  }

   /**
   * Get joinParallelActivitiesOnComplete
   * @return joinParallelActivitiesOnComplete
  **/
  @ApiModelProperty(value = "")
  public Boolean getJoinParallelActivitiesOnComplete() {
    return joinParallelActivitiesOnComplete;
  }

  public void setJoinParallelActivitiesOnComplete(Boolean joinParallelActivitiesOnComplete) {
    this.joinParallelActivitiesOnComplete = joinParallelActivitiesOnComplete;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    InjectActivityRequest injectActivityRequest = (InjectActivityRequest) o;
    return Objects.equals(this.injectionType, injectActivityRequest.injectionType) &&
        Objects.equals(this.id, injectActivityRequest.id) &&
        Objects.equals(this.name, injectActivityRequest.name) &&
        Objects.equals(this.assignee, injectActivityRequest.assignee) &&
        Objects.equals(this.taskId, injectActivityRequest.taskId) &&
        Objects.equals(this.processDefinitionId, injectActivityRequest.processDefinitionId) &&
        Objects.equals(this.joinParallelActivitiesOnComplete, injectActivityRequest.joinParallelActivitiesOnComplete);
  }

  @Override
  public int hashCode() {
    return Objects.hash(injectionType, id, name, assignee, taskId, processDefinitionId, joinParallelActivitiesOnComplete);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class InjectActivityRequest {\n");

    sb.append("    injectionType: ").append(toIndentedString(injectionType)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    assignee: ").append(toIndentedString(assignee)).append("\n");
    sb.append("    taskId: ").append(toIndentedString(taskId)).append("\n");
    sb.append("    processDefinitionId: ").append(toIndentedString(processDefinitionId)).append("\n");
    sb.append("    joinParallelActivitiesOnComplete: ").append(toIndentedString(joinParallelActivitiesOnComplete)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}
